package com.example.cloud.model.business.medical;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by wangtao on 2018/7/2.
 * 治疗方案-病程记录
 */
@Entity(name = "treat_plan_course_record")
@Data
@EqualsAndHashCode(callSuper = false)
public class TreatPlanCourseRecord extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 患者主键
    @Column(name = "patient_id")
    private Long patientId;
    // 主诉ID
    @Column(name = "complaint_id")
    private Long complaintId;
    // 内容
    @Column(name = "content",length = 2000)
    private String content;
    // 医师
    @Column(name = "doctor")
    private String doctor;
}
